package com.bootdo.clouddocommon.service;

import com.bootdo.clouddocommon.dto.ChainDO;
import com.bootdo.clouddocommon.intercepter.FeignIntercepter;
import com.bootdo.clouddocommon.utils.R;
import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.scheduling.annotation.Async;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.multipart.MultipartFile;

//import com.bootdo.clouddocommon.intercepter.OAuth2FeignRequestInterceptor;

//@FeignClient(name = "api-base", configuration = OAuth2FeignRequestInterceptor.class)
@Headers("Content-Type:application/json")
@FeignClient(name = "api-chain", configuration = FeignIntercepter.class)
public interface ChainRpcService {
    @Async
    @PostMapping("chain/upLoadUpChain")
    R uploadChain(Object file);

    @Async
    @PostMapping("chain/test1")
    R save(ChainDO chainDO);
}
